﻿namespace etracks.Web.Controllers
{
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Web;
	using System.Web.Mvc;
	using System.Web.Mvc.Ajax;

	[Authorize]
	public class HomeController : BaseController
	{
		public ActionResult Index ()
		{
			var mvcName = typeof(Controller).Assembly.GetName ();
			var isMono = Type.GetType ("Mono.Runtime") != null;

			ViewData ["Version"] = mvcName.Version.Major + "." + mvcName.Version.Minor;
			ViewData ["Runtime"] = isMono ? "Mono" : ".NET";

			return View ();
		}

        public ActionResult SystemIndex()
        {

            return View();

        }

        public ActionResult Crafty()
        {
            return View();
        }

        public ActionResult Test()
        {
            return View();
        }

        public ActionResult Ace()
        {
            return View();
        }

        public ActionResult SendTestEmail()
        {
            System.Net.Mail.MailMessage m;
            System.Net.Mail.SmtpClient c;
            System.Net.Mime.ContentDisposition x;
            System.Net.Mime.ContentType v;
            // System.Net.Mime.TransferEncoding == System.Net.Mime.TransferEncoding.QuotedPrintable
            
            return View();
        }

        public ActionResult Log()
        {
            //log4net.ILog log = new 
            log4net.ILog log = log4net.LogManager.GetLogger(typeof(HomeController));

            log.Error("HomeController-Log");
            

            return View();
        }
	}
}